/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 23735
 * Date: 2022-10-24
 * Time: 19:41
 */
//饿汉模式的单例模式
public class Singleton2 {
    private static Singleton2 instance =new Singleton2();
    private Singleton2(){}

    public static Singleton2 getInstance(){
        return instance;
    }
}
